cmake_minimum_required(VERSION 3.15)
project(rtsp_service)

set(CMAKE_C_STANDARD 99)

include_directories(
        include
        include/linked_list
        include/thread_pool
        include/memory_pool
        include/rtsp_service
        include/array
        include/file
        include/str
        include/table
        include/log
        )


add_executable(rtsp_service main.c
        src/thread_pool/TThreadPool.c
        src/linked_list/TWList.c
        src/memory_pool/ABMemoryPool.c
        src/rtsp_service/rtp_unit.c
        src/array/PBufArry.c
        src/file/RLBufFile.c
        src/str/PBufStr.c
        src/str/PBStrDispose.c
        src/file/BSocketFile.c
        src/table/HWordTable.c
        src/table/CHashTable.c
        src/rtsp_service/rtp_user.c
        src/rtsp_service/rtsp_unit.c
        src/rtsp_service/rtsp_service.c
        src/rtsp_service/rtsp_resolver.c
        src/rtsp_service/rtsp_response.c
        src/log/Debug.c)


target_link_libraries(rtsp_service
        pthread)